import service from '@/utils/request'

export const useTestdddApi = (id: number) => {
	return service.get('/test/test/' + id)
}

export const useTestdddSubmitApi = (dataForm: any) => {
	if (dataForm.id) {
		return service.put('/test/test', dataForm)
	} else {
		return service.post('/test/test', dataForm)
	}
}
